import random
name = "xxt"

if name == "xxt":
    print(name)
    print("tab")
else:
    print("6")

if 0:
    print(name)
    print("tab")
else:
    print("6")

# height = int(input("Enter you height:"))
# if height > 120:
#     print("need money 10￥")
# elif height > 111:
#     print("need money 8￥")
#     if height > 10:
#         print("88")
# else:
#     print("is free for you!!!")
# print("Wish you have a pleasant trip!")


num = random.randint(0, 10)
print(num)

i = 0
while i < 9:
    print(f"66{i}")
    i += 1

heart = "I LOVE XXT"
sum = 0
for i in heart:
    print(i)
    if i == "X":
        sum += 1
print(sum)

for i in range(10):
    print(i)
for i in range(3, 5):
    print(i)
for i in range(1, 9, 3):
    print(i)

print(i)

for i in range(1, 10):
    for j in range(1, i + 1):
        print(f"{i} * {j} = {i * j}\t", end='')
    print()

a = 1
for i in range(0, 5):
    if i == a:
        continue
    print(i)

for i in range(0, 5):
    if i == a:
        break
    print(i)

s = "xxt is pig"
print(len(s))
def my_len(data):
    count = 0
    for i in data:
        count += 1
    print(f"len:{count}")

my_len(s)

def my_love(name):
    print(f"you lover is:{name}")
    return 1314

print(my_love("xxt"))


def add(x, y):
    result = x + y
    return result

print(add("1", "3"))

if not s != "ss":
    print("ss")
else:
    print("not")
    print(my_love("xxt"))

age = 18

def modifyAge():
    global age
    age = 30
    print(age)

modifyAge()
print(age)

